<template>
  <div class="pages-product-show">
    <zk-head backText="首页" :title="pageInfo.title" v-if="asyncFlag"></zk-head>
  </div>
</template>

<script>
  import { THEME_GETPAGEINFO_GET } from '@/service/api/apiUrl'
  export default {
    config: {
      'navigationBarTitleText': '商品详情'
    },
    data () {
      return {
        pageInfo: '',
        asyncFlag: false,
        bodyWidth: document.body.clientWidth
      }
    },
    mounted () {
      this.init()
    },
    methods: {
      async init () {
        this.$loading = true
        this.pageInfo = await this.$api.get(THEME_GETPAGEINFO_GET, 'clientType=' + this.$client + '&url=' + this.$route.path)
        this.$loading = false
        this.asyncFlag = true
        // console.info('测试一页面', this.pageInfo)
      }
    }
  }
</script>

<style scoped lang="less">
  .pages-product-show {
    width: 100%;
  }
</style>

